#!/usr/bin/python
# -*- coding: utf-8 -*-

import Ice, sys
import RenderNodeI
from RenderNodeI import *

class RenderServer (Ice.Application):

    def run (self, argv):
        
        self.shutdownOnInterrupt()

        adapter = self.communicator().createObjectAdapter('RenderNodeAdapter')
        adapter.activate()

        adapter.add(RenderNodeI(),
                    self.communicator().stringToIdentity("RenderNode"))

        self.communicator().waitForShutdown()

        return 0

RenderServer().main(sys.argv)
